/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pa165.pa165languageschoolclient;

import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.config.ClientConfig;
import com.sun.jersey.api.client.config.DefaultClientConfig;
import org.codehaus.jackson.jaxrs.JacksonJsonProvider;

/**
 *
 * @author Elena Medvedeva
 */
public class AppClient {
    
    public static Client getClient(){
        ClientConfig cfg = new DefaultClientConfig();
        cfg.getClasses().add(JacksonJsonProvider.class);
         cfg.getClasses().add(ObjectMapperProvider.class);  
        Client client = Client.create(cfg);
        return client;
    } 
    
    
}
